package com.service.imp;

import com.pojo.Distribution;
import com.pojo.Roominfo;
import com.service.ClassroomService;
import com.service.core.ServiceBase;

public class ClassroomServiceImp extends ServiceBase implements ClassroomService{

	@Override
	public Distribution getdistributionByClassroomId(Integer classroomId) {
		Roominfo ri = roominfoDao.getRoominfo(classroomId);
		return distributionDao.getDistributionById(ri.getDistributionId());
		
	}

	@Override
	public boolean updateDistribution_broken(Integer distribution_id,
			String broken) {
		return distributionDao.updateDistribution_broken(distribution_id, broken);
	}

	@Override
	public boolean updateDistribution_empty(Integer distribution_id,
			String empty) {
		return distributionDao.updateDistribution_empty(distribution_id, empty);
	}

	

	
	

}
